Skip to content

Conformance Tests for Spec Change in PR#624 #657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 25, 2014

Conversation

DanielRosenwasser
Copy link
Member

Adds/moves around tests for #624

var numPromise: Promise<number>;
var newPromise = numPromise.then(testFunction);
~~~~~~~~~~~~
!!! Argument of type '{ (n: number): Promise<number>; (s: string): Promise<string>; }' is not assignable to parameter of type '(x: number) => Promise<string>'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be best to break this test into multiple files with errors and non-errors so that the non-error cases can still get a type baseline (we should probably just always do type baselines even for tests with errors)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do type baselines for files that do not have syntax errors ?

@mhegazy
Copy link
Contributor

mhegazy commented Nov 16, 2014

@DanielRosenwasser why has not this gone in?

Conflicts:
	tests/baselines/reference/parameterInitializersForwardReferencing.errors.txt
DanielRosenwasser added a commit that referenced this pull request Nov 25, 2014
Conformance Tests for Spec Change in PR#624
@DanielRosenwasser DanielRosenwasser merged commit 3e1b6b8 into master Nov 25, 2014
@DanielRosenwasser DanielRosenwasser deleted the conformanceTests-624 branch November 25, 2014 22:32
@DanielRosenwasser
Copy link
Member Author

@mhegazy Done.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants