Skip to content

Commit

Permalink
add (currently failing) test for generic members in classes
Browse files Browse the repository at this point in the history
  • Loading branch information
kindlich committed Jun 25, 2024
1 parent 3f8c934 commit b0603c9
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#output: string
#output: Hello World

public class MyClass {
public static identity<T>(t: T): T {
return t;
}
}

var identity = MyClass.identity<string>("Hello World");
println(typeof(identity));
// comment back in when typeof identity == string instead of T@generic_members
//println(identity);

0 comments on commit b0603c9

Please sign in to comment.