is it an expected behavior to you? encountered it ...
# announcements
b
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
Looks normal to me, what did you expect?
l
He expected the
String
extension function to not being accessible from inside a
Bar
instance
b
yup
nor the sayFoo function
l
The thing is you’re still inside the
foo.invoke
block, so you have access to whatever the class
Foo
provides
k
I'm seeing some different code then, play.kotlinlang is very glitchy. It often shows old code.
l
code
k
Thanks!
There's an annotation
@DslMarker
specifically to solve this, I'll look for a link.
2
b
oh well that solves it, thanks