mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-01 03:24:41 +00:00
Skip tyAlias inside semTypeTraits in case a concept accidently emits one (#23640)
This commit is contained in:
@@ -365,3 +365,14 @@ block: # enum.len
|
||||
doAssert MyEnum.enumLen == 4
|
||||
doAssert OtherEnum.enumLen == 3
|
||||
doAssert MyFlag.enumLen == 4
|
||||
|
||||
when true: # Odd bug where alias can seep inside of `distinctBase`
|
||||
import std/unittest
|
||||
|
||||
type
|
||||
AdtChild* = concept t
|
||||
distinctBase(t)
|
||||
|
||||
proc `$`*[T: AdtChild](adtChild: T): string = ""
|
||||
|
||||
check 10 is int
|
||||
|
||||
Reference in New Issue
Block a user