Community
Participate
Working Groups
def <T> T foo(Class<T> clazz) { val x = typeof(String).foo return null } compiles to invalid Java code: public <T extends Object> T foo(final Class<T> clazz) { T _foo = this.<String>foo(java.lang.String.class); final T x = _foo; return null; } _foo should be of type String
Works with the new TS
Requested via bug 522520. -M.