https://kotlinlang.org logo
u

uhe

03/26/2016, 9:18 PM
Anybody know why this does not work?
Copy code
class Foo {
        val access = ReentrantReadWriteLock()

        fun foo() = access.write {
            // fails with Back-end (JVM) Internal error: Couldn't inline method call 'write' into
            // but is not marked in the IDE
            return 
        }
    }