Closed
Description
Compiler Version
3.1.2-bin-SNAPSHOT @ b3ab102
Minimised Example
class Dog:
inline given bark(using msg: String = "Woof!"): String = s"bark: $msg"
class Wolf:
private val dog: Dog = Dog()
export dog.given
val w = Wolf()
import w.given
summon[String]
Output
-- Error: ----------------------------------------------------------------------
31 |summon[String]
| ^
|value dog cannot be accessed as a member of (Wolf_this : (w : Wolf)) from module class i14020$package$.
| This location contains code that was inlined from i14020.scala:39
1 error found
Expectation
no error
Originally posted by @bishabosha in #14051 (comment)