[FIR] Introduce UnsafeVariance attribute (see KT-41792)

This commit is contained in:
Mikhail Glukhikh
2020-09-10 15:07:11 +03:00
parent e4aaae9ae7
commit aa897db132
3 changed files with 22 additions and 1 deletions
@@ -96,6 +96,7 @@ fun List<FirAnnotationCall>.computeTypeAttributes(): ConeAttributes {
CompilerConeAttributes.Exact.ANNOTATION_CLASS_ID -> attributes += CompilerConeAttributes.Exact
CompilerConeAttributes.NoInfer.ANNOTATION_CLASS_ID -> attributes += CompilerConeAttributes.NoInfer
CompilerConeAttributes.ExtensionFunctionType.ANNOTATION_CLASS_ID -> attributes += CompilerConeAttributes.ExtensionFunctionType
CompilerConeAttributes.UnsafeVariance.ANNOTATION_CLASS_ID -> attributes += CompilerConeAttributes.UnsafeVariance
}
}
return ConeAttributes.create(attributes)