forked from babel/babel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ts] Allow
...<...>
followed by newline or binary operator (babel#1…
- Loading branch information
1 parent
42c85a3
commit 8d19fe2
Showing
11 changed files
with
957 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...abel-parser/test/fixtures/typescript/type-arguments/instantiation-expression-asi/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
const x5 = f<true> | ||
let yy = 0; | ||
|
||
const x6 = f<true> | ||
interface I {} | ||
|
||
let x10 = f<true> | ||
this.bar() | ||
|
||
let x11 = f<true> | ||
function bar() {} | ||
|
||
let x12 = f<true> | ||
class C {} | ||
|
||
let x13 = f<true> | ||
bar() | ||
|
||
let x14 = f<true> | ||
void bar() | ||
|
||
class C1 { | ||
static specialFoo = f<string> | ||
static bar = 123 | ||
} | ||
|
||
class C2 { | ||
public specialFoo = f<string> | ||
public bar = 123 | ||
} | ||
|
||
class C3 { | ||
private specialFoo = f<string> | ||
private bar = 123 | ||
} | ||
|
||
class C4 { | ||
protected specialFoo = f<string> | ||
protected bar = 123 | ||
} |
Oops, something went wrong.