Fixed const tuples in inferred generics (#18598)

This commit is contained in:
Jason Beetham 2021-07-27 01:36:59 -06:00 • committed by GitHub
commit ed44618deb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 17 deletions

View file

@ -0,0 +1,14 @@
discard """
action: run
"""
block:
proc something(a: string or int or float) =
const (c, d) = (default a.type, default a.type)
block:
proc something(a: string or int) =
const c = default a.type
block:
proc something(a: string or int) =
const (c, d, e) = (default a.type, default a.type, default a.type)