https://kotlinlang.org logo
#eap
Title
# eap
m

Marc Knaup

10/18/2018, 8:06 PM
What is the reason that
inline class
must be at the outer scope? Is that a temporary limitation?
Copy code
class User {	
	inline class Id(val raw: String) // Inline classes are only allowed on top level
}
o

orangy

10/18/2018, 8:14 PM
@mikhail.zarechenskiy
m

mikhail.zarechenskiy

10/19/2018, 10:13 AM
Yes, this is a temporary limitation, initially, there were several questions about capturing outer generics but with the current design we'll probably allow inline classes inside other declarations
m

Marc Knaup

10/19/2018, 10:14 AM
Awesome, looking forward to it! It's a great feature, appreciate your work 👍
2 Views