[NI] Remove direcion calculator from variable fixation

Force constraint system completer to always fix variable with unknown position.
This makes inferred type for in parameters less specific, but OI infers to
subtype in such cases, so NI won't infer to less specific types than before.
This commit is contained in:
Pavel Kirpichenkov
2019-12-19 12:14:35 +03:00
parent e9941f8c12
commit e69e45e2a6
2 changed files with 4 additions and 8 deletions
@@ -57,14 +57,13 @@ fun test7(cls: Cls) {
}
fun test8(cls: Cls) {
// TODO
<!IMPLICIT_NOTHING_AS_TYPE_PARAMETER, TYPE_MISMATCH!>id<!>(
id(
<!DEBUG_INFO_EXPRESSION_TYPE("Inv<in Cls>")!>wrapIn(cls)<!>
)
}
fun test9(cls: Cls) {
id(
<!DEBUG_INFO_EXPRESSION_TYPE("InB<Bound>")!>InB(cls)<!>
<!DEBUG_INFO_EXPRESSION_TYPE("InB<Cls>")!>InB(cls)<!>
)
}