Fix distinct requiresInit test and manual (#19901)

fix distinct test and manual
This commit is contained in:
Khaled Hammouda 2022-06-22 06:36:30 -04:00 • committed by GitHub
commit caf6aff06b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View file

@ -135,11 +135,11 @@ block tRequiresInit:
reject:
var s: DistinctString
s = "test"
doAssert s == "test"
doAssert string(s) == "test"
accept:
let s = "test"
doAssert s == "test"
let s = DistinctString("test")
doAssert string(s) == "test"
block: #17322
type