- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
overloaded local function
Hi,
why does the following declaration of the overloaded local function
"inner" lead to the error "method is defined twice":
def outer() {
def inner():Int = 1
def inner(x: Int):Int = x
}
Thanks,
HjP










Re: overloaded local function
The language does not allow overloading of local methods. Choose different names for them.
-jason
overloaded local function
On Tuesday, February 7, 2012, Jason Zaugg wrote: