Make constructor of JetTypeImpl private, introduce factory methods

This commit is contained in:
Denis Zharkov
2015-08-03 17:55:00 +03:00
parent 101ab03721
commit 460c719753
29 changed files with 90 additions and 65 deletions
@@ -57,7 +57,7 @@ public fun approximateFlexibleTypes(jetType: JetType, outermost: Boolean = true)
return approximation
}
return JetTypeImpl(
return JetTypeImpl.create(
jetType.getAnnotations(),
jetType.getConstructor(),
jetType.isMarkedNullable(),