@@ -584,7 +584,7 @@ def func2(x: SameNode[T]) -> SameNode[T]:
584584 return x
585585reveal_type(func2) # N: Revealed type is "def [T] (x: __main__.Node[T`-1, T`-1]) -> __main__.Node[T`-1, T`-1]"
586586
587- func2(Node(1, 'x')) # E: Cannot infer type argument to type parameter "T" of "func2"
587+ func2(Node(1, 'x')) # E: Cannot infer value of type parameter "T" of "func2"
588588y = func2(Node('x', 'x'))
589589reveal_type(y) # N: Revealed type is "__main__.Node[builtins.str, builtins.str]"
590590
@@ -888,7 +888,7 @@ def fun2(v: Vec[T], scale: T) -> Vec[T]:
888888
889889reveal_type(fun1([(1, 1)])) # N: Revealed type is "builtins.int"
890890fun1(1) # E: Argument 1 to "fun1" has incompatible type "int"; expected "list[tuple[bool, bool]]"
891- fun1([(1, 'x')]) # E: Cannot infer type argument to type parameter "T" of "fun1"
891+ fun1([(1, 'x')]) # E: Cannot infer value of type parameter "T" of "fun1"
892892
893893reveal_type(fun2([(1, 1)], 1)) # N: Revealed type is "builtins.list[tuple[builtins.int, builtins.int]]"
894894fun2([('x', 'x')], 'x') # E: Value of type variable "T" of "fun2" cannot be "str"
@@ -909,7 +909,7 @@ def f(x: Node[T, T]) -> TupledNode[T]:
909909 return Node(x.x, (x.x, x.x))
910910
911911f(1) # E: Argument 1 to "f" has incompatible type "int"; expected "Node[Never, Never]"
912- f(Node(1, 'x')) # E: Cannot infer type argument to type parameter "T" of "f"
912+ f(Node(1, 'x')) # E: Cannot infer value of type parameter "T" of "f"
913913reveal_type(Node('x', 'x')) # N: Revealed type is "a.Node[builtins.str, builtins.str]"
914914
915915[file a.py]
0 commit comments