mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
23 lines
232 B
JavaScript
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")
|