| Summary: | [Xtend] Class<?> incompatible argument | ||
|---|---|---|---|
| Product: | [Tools] Xtend | Reporter: | Sven Efftinge <sven.efftinge> |
| Component: | Core | Assignee: | Project Inbox <xtend-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | 2.2.0 | Flags: | sven.efftinge:
juno+
|
| Target Milestone: | M6 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Seems to be related to the JvmModelInferrer. Class<?> has to become Class<? extends Object> in the inferred model (similar to the implicit 'extends Object') Already resolved Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
def <T> T foo(Class<T> clazz) { clazz.newInstance } def void test(Class<?> clazz) { foo(clazz) } clazz is marked as an invalid argument to foo(). Class<? extends Object> is ok.