diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2021-01-15 23:56:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 18:56:38 -0800 |
commit | 78a99587a4ad8ad17a179a7992fcda8a6e10f25a (patch) | |
tree | 18a244e09f7db4636b3bd221130f36f5d5fb8b97 /tests/generics/tgenerics_issues.nim | |
parent | 7b632f9ccbd4d15fa9fe4ca45b6fea22b259c81d (diff) | |
download | Nim-78a99587a4ad8ad17a179a7992fcda8a6e10f25a.tar.gz |
Deprecate TaintedString (#15423)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
Diffstat (limited to 'tests/generics/tgenerics_issues.nim')
-rw-r--r-- | tests/generics/tgenerics_issues.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/generics/tgenerics_issues.nim b/tests/generics/tgenerics_issues.nim index 365afd407..46b4c21c9 100644 --- a/tests/generics/tgenerics_issues.nim +++ b/tests/generics/tgenerics_issues.nim @@ -774,13 +774,13 @@ block: # issue #9458 Option[T] = object val: T has: bool - + Bar = object proc none(T: typedesc): Option[T] = discard - proc foo[T](self: T; x: Option[Bar] = Bar.none) = + proc foo[T](self: T; x: Option[Bar] = Bar.none) = discard foo(1) @@ -834,7 +834,7 @@ proc getBar(x: string): Bar = Bar(foo: none[seq[Foo]](), s: "") -proc fakeReadLine(): TaintedString = "hey" +proc fakeReadLine(): string = "hey" echo getBar(fakeReadLine()) # causes error |