Skip to content

Commit edcf023

Browse files
committed
Add failing test for scala#9685
1 parent 5d2812a commit edcf023

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/neg-macros/i9685bis.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- [E008] Not Found Error: tests/neg-macros/i9685bis.scala:14:4 --------------------------------------------------------
2+
14 | 1.asdf // error
3+
| ^^^^^^
4+
| value asdf is not a member of Int

tests/neg-macros/i9685bis.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package foo
2+
3+
import scala.language.implicitConversions
4+
5+
class Foo
6+
7+
object Foo:
8+
9+
inline implicit def toFoo(x: Int): Foo = Foo()
10+
11+
object Usage:
12+
1.asdf // error

0 commit comments

Comments
 (0)