Skip to content

Commit

Permalink
Add failing test for scala#9685
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrf committed Jun 6, 2023
1 parent 5d2812a commit edcf023
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/neg-macros/i9685bis.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- [E008] Not Found Error: tests/neg-macros/i9685bis.scala:14:4 --------------------------------------------------------
14 | 1.asdf // error
| ^^^^^^
| value asdf is not a member of Int
12 changes: 12 additions & 0 deletions tests/neg-macros/i9685bis.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package foo

import scala.language.implicitConversions

class Foo

object Foo:

inline implicit def toFoo(x: Int): Foo = Foo()

object Usage:
1.asdf // error

0 comments on commit edcf023

Please sign in to comment.