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
@oxbowlakes said (edited on Aug 27, 2013 3:40:15 PM UTC):
I think this is the same issue:
scala>classGBP {
|classC(vali:Int)
|defadd(c: C) = println(c.i)
| }
defined classGBP
scala>objectutil { defc(p: GBP)(i: Int=1): p.C=new p.C(i) }
defined module util
scala>classSubextendsGBP {add(util.c(this)())}
<console>:17:error: typemismatch;
found : x$1.Crequired: Sub.this.CclassSubextendsGBP {add(util.c(this)())}
^
If this might seem esoteric, it's annoying because it means I cannot create a useful GridBagPanel.Constraints "constructor" which takes default arguments. Providing the argument works just fine:
scala>classSubextendsGBP {add(util.c(this)(1))}
defined classSub
The product of a quick game of feature-interaction bingo.
The text was updated successfully, but these errors were encountered: