mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
Test case for #6434
This commit is contained in:
19
tests/overload/t6434.nim
Normal file
19
tests/overload/t6434.nim
Normal file
@@ -0,0 +1,19 @@
|
||||
discard """
|
||||
exitcode: 0
|
||||
output: '''assingment
|
||||
assingment
|
||||
'''
|
||||
"""
|
||||
|
||||
type
|
||||
Foo* = object
|
||||
boo: int
|
||||
|
||||
proc `=`(dest: var Foo, src: Foo) =
|
||||
debugEcho "assingment"
|
||||
|
||||
proc test(): auto =
|
||||
var a,b : Foo
|
||||
return (a, b)
|
||||
|
||||
var (a, b) = test()
|
||||
Reference in New Issue
Block a user