accessor for private constructors #KT-2716 fixed

also on the way done small refactoring of JetTypeMapper
- few code duplicates replace by methods
- mapToCallableMethod(ConstructorDescriptor) introduced
This commit is contained in:
Alex Tkachman
2012-09-12 10:31:48 +03:00
parent fb4d6610a8
commit 79c04038fb
7 changed files with 86 additions and 66 deletions
@@ -0,0 +1,11 @@
package someTest
public class Some private(val v: String) {
class object {
public fun init(v: String): Some {
return Some(v)
}
}
}
fun box() = Some.init("OK").v