mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 10:01:39 +00:00
This reverts commit 5e20e935dd.
This commit is contained in:
@@ -1211,12 +1211,12 @@ proc sameTypeAux(x, y: PType, c: var TSameTypeClosure): bool =
|
||||
if containsOrIncl(c, a, b): return true
|
||||
|
||||
if x == y: return true
|
||||
var a = skipTypes(x, {tyAlias})
|
||||
var a = skipTypes(x, {tyGenericInst, tyAlias})
|
||||
while a.kind == tyUserTypeClass and tfResolved in a.flags:
|
||||
a = skipTypes(a[^1], {tyAlias})
|
||||
var b = skipTypes(y, {tyAlias})
|
||||
a = skipTypes(a[^1], {tyGenericInst, tyAlias})
|
||||
var b = skipTypes(y, {tyGenericInst, tyAlias})
|
||||
while b.kind == tyUserTypeClass and tfResolved in b.flags:
|
||||
b = skipTypes(b[^1], {tyAlias})
|
||||
b = skipTypes(b[^1], {tyGenericInst, tyAlias})
|
||||
assert(a != nil)
|
||||
assert(b != nil)
|
||||
if a.kind != b.kind:
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
import std/tables
|
||||
|
||||
var a: Table[string, float]
|
||||
|
||||
type Value*[T] = object
|
||||
table: Table[string, Value[T]]
|
||||
|
||||
discard toTable({"a": Value[float]()})
|
||||
Reference in New Issue
Block a user