2014-11-25 07:53:55 +01:00
|
|
|
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts(4,12): error TS1127: Invalid character.
|
2014-12-09 00:38:35 +01:00
|
|
|
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts(4,14): error TS1109: Expression expected.
|
2014-11-25 07:53:55 +01:00
|
|
|
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts(4,9): error TS2304: Cannot find name 'a'.
|
2014-12-09 00:38:35 +01:00
|
|
|
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'.
|
2014-11-25 07:53:55 +01:00
|
|
|
|
|
|
|
|
2014-12-09 00:38:35 +01:00
|
|
|
==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts (5 errors) ====
|
2014-11-25 07:53:55 +01:00
|
|
|
class C {
|
|
|
|
foo() {
|
|
|
|
// Make sure we don't think of *bar as the start of a generator method.
|
|
|
|
if (a) # * bar;
|
|
|
|
|
|
|
|
!!! error TS1127: Invalid character.
|
|
|
|
~
|
2014-12-09 00:38:35 +01:00
|
|
|
!!! error TS1109: Expression expected.
|
2014-11-25 07:53:55 +01:00
|
|
|
~
|
|
|
|
!!! error TS2304: Cannot find name 'a'.
|
|
|
|
~~~
|
2014-12-09 00:38:35 +01:00
|
|
|
!!! error TS2304: Cannot find name 'bar'.
|
2014-11-25 07:53:55 +01:00
|
|
|
return bar;
|
2014-12-09 00:38:35 +01:00
|
|
|
~~~
|
|
|
|
!!! error TS2304: Cannot find name 'bar'.
|
2014-11-25 07:53:55 +01:00
|
|
|
}
|
2014-12-09 00:38:35 +01:00
|
|
|
}
|