Team,
New to scala and learning step by step. while learning nested scopes in expression blocks, wrote below lines of code
object ExpressionTest extends App {
val area = {
val PI = 3.14
PI * 10
{
val PI= 100
PI * 2
}
}
println(area)
}
Getting below exception at runtime .
Error:(9, 5) Int(10) does not take parameters
I am using Intellji