Created
March 3, 2021 00:57
-
-
Save ifyouseewendy/b4e916bb02f08b4ee8d61a0e3ddf707e to your computer and use it in GitHub Desktop.
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
declare function sayHello(): void; | |
sayHello(); | |
class Foo { | |
constructor( | |
public num: i32 | |
) {} | |
} | |
export function add(x: i32, y: i32): i32 { | |
const s1: Set<Foo> = new Set(); | |
s1.add(new Foo(1)); | |
s1.add(new Foo(1)); | |
s1.add(new Foo(1)); | |
return s1.values().length; // 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment