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
val `P(X|C)`=3
println(`P(X|C)`)
val x = for {
`F(Y|Z)` <- Option(3)
`P(X|C)` <- Option(6)
`A(B|C)` = 4 // fails here
}
yield `P(X|C)`
println(x)
Everything compiles for me except the specified line, which is getting the error:
ScalaFiddle.scala:8: error: not found: value A(B|C)
`A(B|C)` = 4
^
All of this suggests to me that something's a bit weird with backtick'ed identifiers when desugaring to a val. The desugars to flatMap and map appear to work, but the one to val doesn't...