You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I vote for "they're both illegal and Dotty will forbid both, absent some extremely strong compatibility requirement".
The first happens to be tested by test/files/run/t3613.scala, which still lives in Dotty, but maybe the code was legal back then, either because of different semantics with raw types, or because AbstractListModel had no type argument in Java 6 and only got one in Java 7. (Thanks @hrhino for pointing this out and helping diagnose this on Gitter).