fix #12946 Bad C++ codegen on distinct generics C++ types (#21157)

This commit is contained in:
Bung 2022-12-23 16:47:01 +08:00 • committed by GitHub
commit 13251c2ac9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

4
tests/cpp/t12946.nim Normal file
View file

@ -0,0 +1,4 @@
import std/atomics
type Futex = distinct Atomic[int32]
var x: Futex