-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
compiler:interpretercompiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)
Description
Looks like a bug in eval
:
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" to list help topics
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.2.0-514.r3d43
_/ |\__'_|_|_|\__'_| | Commit 3d43df9032 2013-03-16 06:59:07
|__/ |
julia> @eval begin
type T
x
end
T(sum([1,2]))
end
T(3)
julia> @eval begin
type T2
x
end
s = 0
for i in [1,2]
s += i
end
T2(s)
end
ERROR: error compiling anonymous: unsupported or misplaced expression composite_type in function anonymous
Metadata
Metadata
Assignees
Labels
compiler:interpretercompiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)