Skip to content

Instantly share code, notes, and snippets.

@ifyouseewendy
Created March 3, 2021 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifyouseewendy/b4e916bb02f08b4ee8d61a0e3ddf707e to your computer and use it in GitHub Desktop.
Save ifyouseewendy/b4e916bb02f08b4ee8d61a0e3ddf707e to your computer and use it in GitHub Desktop.
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