Juan-Carlos Gandhi (
juan_gandhi) wrote2015-02-28 09:27 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Entry tags:
funny scala question
(from Scala maillist)
"Another, possibly related issue:
This has a problem with the '*' in 'x * x' ... complaint is 'Cannot resolve symbol '*''.
Now *that* is fussy.
What is happening?"
"Another, possibly related issue:
class StrangeIntQueue extends Queue[Int] { override def enqueue[Int](x:Int) = { println( x * x ) super.enqueue(x).asInstanceOf[Queue[Int]] } }
This has a problem with the '*' in 'x * x' ... complaint is 'Cannot resolve symbol '*''.
Now *that* is fussy.
What is happening?"
no subject
no subject