Skip to content

Commit 80cab81

Browse files
committed
Fix inline scripted
With the introduction of transparent, an implicit conversion from Double to Int kicked in. We change the type to String to prevent this
1 parent 2e64369 commit 80cab81

File tree

2 files changed

+3
-3
lines changed
  • sbt-dotty/sbt-test/source-dependencies/inline

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
object B {
2-
transparent def getInline: Double =
3-
A.get
2+
transparent def getInline: String =
3+
A.get.toString
44
}

sbt-dotty/sbt-test/source-dependencies/inline/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $ copy-file changes/B1.scala B.scala
22
> compile
33

44
$ copy-file changes/B2.scala B.scala
5-
# Compilation of C.scala should fail because B.getInline now has type Double instead of Int
5+
# Compilation of C.scala should fail because B.getInline now has type String instead of Int
66
-> compile
77

88
$ copy-file changes/B1.scala B.scala

0 commit comments

Comments
 (0)