-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurs when calling generic and overloaded proc with declare operator () #6981
Labels
Comments
@kinironote do you think this code should work or not? |
ghost
added
the
Generics
label
Dec 28, 2017
I think this code should work. {.experimental.}
var s = newSeq[int](3)
echo s # ok {.experimental.}
proc `()`(a:string, b:string):string = a & b
var s = newSeq[int](3)
echo s # error I may be misunderstanding something. I'm sorry. |
Reduced: {.experimental: "callOperator".}
type Foo = object
proc `()`(foo: Foo) = discard
proc mewSeq[T](a,b:int)=discard
proc mewSeq[T](c:int)= discard
mewSeq[int]() Obviously the above shouldn't compile, but
|
Closed
metagn
added a commit
to metagn/Nim
that referenced
this issue
Nov 26, 2022
survivorm
pushed a commit
to survivorm/Nim
that referenced
this issue
Feb 28, 2023
* better error messages for dot operators [backport] fixes nim-lang#13063 * also fixes nim-lang#7777 * fix nim-lang#6981 and nim-lang#9831 too * fix * minor improvement * sus test fixes * make test multiplatform lol * fix nimsuggest test, extra improvements
capocasa
pushed a commit
to capocasa/Nim
that referenced
this issue
Mar 31, 2023
* better error messages for dot operators [backport] fixes nim-lang#13063 * also fixes nim-lang#7777 * fix nim-lang#6981 and nim-lang#9831 too * fix * minor improvement * sus test fixes * make test multiplatform lol * fix nimsuggest test, extra improvements
bung87
pushed a commit
to bung87/Nim
that referenced
this issue
Jul 29, 2023
* better error messages for dot operators [backport] fixes nim-lang#13063 * also fixes nim-lang#7777 * fix nim-lang#6981 and nim-lang#9831 too * fix * minor improvement * sus test fixes * make test multiplatform lol * fix nimsuggest test, extra improvements
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: