yoavst
08/12/2017, 7:28 PMThe feature "multi platform projects" is experimental and should be enabled explicitlyHow do I enable it? Having
apply plugin: 'kotlin-platform-common'
, IDE is ok, but gradle is complainingjw
08/14/2017, 5:06 AMimpl typealias
an internal
type to a public
onejw
08/14/2017, 5:06 AMjw
08/14/2017, 5:07 AMtypealias
, but what's the problem with widening?jw
08/14/2017, 5:18 AMkarelpeeters
08/14/2017, 8:16 PMjw
08/17/2017, 4:49 AMinternal
be visible to implement
modules in the same project?jw
08/17/2017, 4:50 AMpackage
scoping, it's really hard to share implementation details across the platform-specific implementationsjw
08/17/2017, 4:50 AMyoavst
08/18/2017, 1:42 PMheader class Url(url: String) {
val protocol: String
// same with fun getProtocol(): String
}
import java.net.URL
impl typealias Url = URL
Why do I get error? URL
has a method String getProtocol()
karelpeeters
08/18/2017, 1:43 PMyoavst
08/18/2017, 1:45 PMgetProtocol()
and protocol
natpryce
08/19/2017, 12:01 AMjw
08/19/2017, 12:08 AMjw
08/19/2017, 12:08 AMjw
08/19/2017, 12:21 AMjw
08/19/2017, 12:21 AMorg.junit.Ignore
to the jvm onejw
08/19/2017, 12:22 AMbashor
08/19/2017, 7:11 PMjw
08/19/2017, 7:13 PMjw
08/19/2017, 7:14 PMnatpryce
08/20/2017, 9:40 AMnatpryce
08/20/2017, 9:40 AMyoavst
08/20/2017, 11:14 AMraniejade
08/21/2017, 8:02 AMyoavst
08/22/2017, 7:06 AMyoavst
08/22/2017, 7:06 AMsandwwraith
08/22/2017, 2:25 PMsandwwraith
08/22/2017, 2:25 PMjava.io.Writer
class. Given the header abstract class Writer protected constructor()
in common module and impl typealias Writer = java.io.Writer
in jvm module, it fails to compile with:
The following declaration is incompatible because some members are not implemented:
public typealias Writer = Writer
No implementations are found for members listed below:
protected constructor Writer()
The following declaration is incompatible because visibility is different:
protected/*protected and package*/ constructor Writer()
The following declaration is incompatible because number of value parameters is different:
protected/*protected and package*/ constructor Writer(p0: Any!)
Is it a bug or I'm missing something? Don't know how to make "protected/*protected and package*/ constructor"...
1 reply
Filed an issue here: https://youtrack.jetbrains.com/issue/KT-19848rellenberger
09/14/2017, 8:21 PM