Resolve cross file resolution errors in atomics (#19422) [backport:1.6]
* Resolve call undeclared routine testAndSet * Fix undeclared field atomicType
This commit is contained in:
parent
4a38092ac1
commit
851e515bba
3 changed files with 27 additions and 10 deletions
11
tests/stdlib/concurrency/tatomic_import.nim
Normal file
11
tests/stdlib/concurrency/tatomic_import.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import atomicSample
|
||||
|
||||
block crossFileObjectContainingAGenericWithAComplexObject:
|
||||
discard initAtomicWithGeneric[string]("foo")
|
||||
|
||||
block crossFileObjectContainingAGenericWithAnInteger:
|
||||
discard initAtomicWithGeneric[int](1)
|
||||
discard initAtomicWithGeneric[int8](1)
|
||||
discard initAtomicWithGeneric[int16](1)
|
||||
discard initAtomicWithGeneric[int32](1)
|
||||
discard initAtomicWithGeneric[int64](1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue