We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063adfe commit ac10053Copy full SHA for ac10053
tests/run/i15725.check
@@ -1 +1 @@
1
-2.0 meters
+2 meters
tests/run/i15725.scala
@@ -1,8 +1,8 @@
-class ToString(d:Double) extends AnyVal :
+class ToString(d: Int) extends AnyVal :
2
inline override def toString():String = s"$d meters"
3
4
@main def Test =
5
- val ts = ToString(2.0)
+ val ts = ToString(2)
6
val a: Any = ts
7
println(a)
8
0 commit comments