https://kotlinlang.org logo
#announcements
Title
# announcements
b

Bruno_

09/26/2019, 12:12 PM
is it an expected behavior to you? encountered it when constructing a DSL for css, tho it's not JS specific https://pl.kotl.in/IUG_K_kLN
k

karelpeeters

09/26/2019, 12:16 PM
Looks normal to me, what did you expect?
l

Luca Nicoletti

09/26/2019, 12:16 PM
He expected the
String
extension function to not being accessible from inside a
Bar
instance
b

Bruno_

09/26/2019, 12:19 PM
yup
nor the sayFoo function
l

Luca Nicoletti

09/26/2019, 12:20 PM
The thing is you’re still inside the
foo.invoke
block, so you have access to whatever the class
Foo
provides
k

karelpeeters

09/26/2019, 12:20 PM
I'm seeing some different code then, play.kotlinlang is very glitchy. It often shows old code.
l

Luca Nicoletti

09/26/2019, 12:20 PM
code
k

karelpeeters

09/26/2019, 12:23 PM
Thanks!
There's an annotation
@DslMarker
specifically to solve this, I'll look for a link.
2
b

Bruno_

09/26/2019, 12:36 PM
oh well that solves it, thanks