Support Flow this parameter annotations (#12234)
This commit is contained in:
7
packages/babel-parser/test/fixtures/flow/this-annotation/function-declaration/input.js
vendored
Normal file
7
packages/babel-parser/test/fixtures/flow/this-annotation/function-declaration/input.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
function foo (this : number, a : string, b) {}
|
||||
|
||||
function bar (this : number) {}
|
||||
|
||||
function baz (this : number, ...a) {}
|
||||
|
||||
function qux<T> (this : T) {}
|
||||
Reference in New Issue
Block a user