Skip to content

Commit

Permalink
add test for nim-lang#12720 anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Aug 29, 2024
1 parent 1f69047 commit e0975a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/generics/tuninstantiatedgenericcalls.nim
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,18 @@ block: # issue #1969
type TripleLike[Generator] = tuple
a, b, c: typeof(new(Generator)[].next)

import std/atomics

block: # issue #12720
const CacheLineSize = 128
type
Enqueueable = concept x, type T
x is ptr
x.next is Atomic[pointer]
MyChannel[T: Enqueueable] = object
pad: array[CacheLineSize - sizeof(default(T)[]), byte]
dummy: typeof(default(T)[])

when false: # issue #22342, type section version of #22607
type GenAlias[isInt: static bool] = (
when isInt:
Expand Down

0 comments on commit e0975a5

Please sign in to comment.