Skip to content

Check whether we have a class before testing whether we have a super-class#20928

Merged
DanielRosenwasser merged 3 commits into
masterfrom
initializerWithPropertyAccessUseBeforeDeclaration
Dec 29, 2017
Merged

Check whether we have a class before testing whether we have a super-class#20928
DanielRosenwasser merged 3 commits into
masterfrom
initializerWithPropertyAccessUseBeforeDeclaration

Conversation

@DanielRosenwasser
Copy link
Copy Markdown
Member

@DanielRosenwasser DanielRosenwasser commented Dec 28, 2017

Fixes #20925

I'd try putting the tests in a single file, but somehow TypeScript wasn't reporting the errors in the constituent files.

I just made a single file with multiple tests.

@DanielRosenwasser DanielRosenwasser force-pushed the initializerWithPropertyAccessUseBeforeDeclaration branch 2 times, most recently from 3d2677d to 00cc709 Compare December 29, 2017 20:28
@DanielRosenwasser DanielRosenwasser force-pushed the initializerWithPropertyAccessUseBeforeDeclaration branch from 00cc709 to b899c49 Compare December 29, 2017 20:40
@DanielRosenwasser
Copy link
Copy Markdown
Member Author

DanielRosenwasser commented Dec 29, 2017

Maybe obvious, but the reason we do this check can be found at tests/cases/compiler/useBeforeDeclaration_superClass.ts.

@DanielRosenwasser DanielRosenwasser merged commit 0477f91 into master Dec 29, 2017
@DanielRosenwasser DanielRosenwasser deleted the initializerWithPropertyAccessUseBeforeDeclaration branch December 29, 2017 22:47
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 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.

2 participants