This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
25 lines
No EOL
1.2 KiB
Text
25 lines
No EOL
1.2 KiB
Text
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts(4,9): error TS2304: Cannot find name 'a'.
|
|
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts(4,12): error TS1127: Invalid character.
|
|
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts(4,14): error TS1109: Expression expected.
|
|
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts(4,16): error TS2304: Cannot find name 'bar'.
|
|
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts(5,12): error TS2304: Cannot find name 'bar'.
|
|
|
|
|
|
==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts (5 errors) ====
|
|
class C {
|
|
foo() {
|
|
// Make sure we don't think of *bar as the start of a generator method.
|
|
if (a) # * bar;
|
|
~
|
|
!!! error TS2304: Cannot find name 'a'.
|
|
|
|
!!! error TS1127: Invalid character.
|
|
~
|
|
!!! error TS1109: Expression expected.
|
|
~~~
|
|
!!! error TS2304: Cannot find name 'bar'.
|
|
return bar;
|
|
~~~
|
|
!!! error TS2304: Cannot find name 'bar'.
|
|
}
|
|
} |