Files
codeql/javascript/extractor/tests/flow/input/tst.js
2018-11-07 07:48:25 +00:00

23 lines
232 B
JavaScript

type Point = {
x: int,
y: int
}
class A<T> {
x: T;
m() : Point {}
}
function f() {
switch(x) {
case (42):
}
}
@SomeDecorator
type MyPoint = Point
type T1 = {| bar: string |}
type T2 = (| "red" | "green" | "blue")