funny scala question
Feb. 28th, 2015 09:27 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
(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
Date: 2015-03-01 07:54 am (UTC)no subject
Date: 2015-03-01 09:41 am (UTC)no subject
Date: 2015-03-01 12:12 pm (UTC)no subject
Date: 2015-03-01 05:37 pm (UTC)