yole
10/13/2015, 5:02 PMdalexander
10/13/2015, 5:03 PMhastebrot
10/13/2015, 5:03 PMmplatvoet
10/13/2015, 5:03 PMemit
keyword is dead, fwiw, I liked this idea:
fun <T> foo(fn:() -> T) : T = fn()
foo (^40 + 2)
foo {
yield 40 + 2
}
mplatvoet
10/13/2015, 5:04 PMyield
except Unit
return typemplatvoet
10/13/2015, 5:04 PMdesseim
10/13/2015, 5:08 PMFile1Kt
and File2Kt
) ?
The compiler complains of JVM signature clashyole
10/13/2015, 5:11 PMdesseim
10/13/2015, 5:12 PMdesseim
10/13/2015, 5:12 PMhastebrot
10/13/2015, 5:21 PMthis will be removed in next milestone.Yay!
apatrida
10/13/2015, 5:42 PMpublic interface ImmutableUri {
fun toURI(): URI
override public fun toString(): String {
return toURI().toString()
}
}
(that's a short version)
you are no longer allowed. " An interface may not implement a method of 'kotlin.Any'"
but since it's Any, everything has toString() already, and I just have to repeat the implementation in each class or have something to delegate to in the interface.orangy
apatrida
10/13/2015, 5:43 PMorangy
apatrida
10/13/2015, 6:11 PMcedric
10/13/2015, 6:51 PMERROR: Cannot load extensions/common.xml from /Users/beust/kotlin/kobalt/kobaltBuild/libs/kobalt-0.178.jar
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:115)
Is there something in my jar that could have prompted the Kotlin compiler to look for this XML file?cedric
10/13/2015, 7:19 PMcfleming
10/13/2015, 8:20 PMtalios
10/13/2015, 8:23 PMcfleming
10/13/2015, 8:24 PMcfleming
10/13/2015, 8:24 PMtalios
10/13/2015, 8:28 PMevanchooly
10/13/2015, 8:29 PMevanchooly
10/13/2015, 8:29 PMevanchooly
10/13/2015, 8:30 PMtalios
10/13/2015, 8:30 PMtalios
10/13/2015, 8:51 PMcfleming
10/13/2015, 8:52 PMcfleming
10/14/2015, 1:03 AMpublic fun <String, Any> leinArgs(): Map<String, Any> {
var ret = hashMapOf<String, Any>()
ret["gpg-path"] = settings.gpgPath
return ret
}