You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the AmmoniteRepl1.0.1
(Scala2.12.3Java1.8.0_131)
If you like Ammonite, please support our development at www.patreon.com/lihaoyi
@import$ivy.`com.lihaoyi::sourcecode:0.1.4`import$ivy.$@defloop= {
for (i <-0 until 1) {
println(implicitly[sourcecode.FullName])
}
}
defined function loop
@ loop
FullName(ammonite.$sess.cmd1.$anonfun)
The loop function should be present in FullName. Unfortunately it is not.
The text was updated successfully, but these errors were encountered:
Atry
changed the title
FullName does not work in for loop
FullName does not work in for loop
Aug 18, 2017
Atry
changed the title
FullName does not work in for loop
FullName does not work in for loops
Aug 18, 2017
I noticed related but probably different misbehavior.
@ def test(): Unit = {
for {
_ <- Option(())
_ <- {
println(implicitly[sourcecode.FullName])
Option(())
}
} ()
}
defined function test
@ test
FullName(ammonite.$sess.cmd2)
It starts to work if the initial step is removed:
@ def test2(): Unit = {
for {
_ <- {
println(implicitly[sourcecode.FullName])
Option(())
}
} ()
}
defined function test2
@ test2
FullName(ammonite.$sess.cmd4.test2)
The
loop
function should be present inFullName
. Unfortunately it is not.The text was updated successfully, but these errors were encountered: