Nested function

Hello,
I tried to create multiple functions and one that call the other.
I saw an
Here is my example:
import org.eclipse.xtext.xbase.Functions

val Functions$Function3<Integer, Integer, Fucntions$Function2<Integer,Integer, Boolean>, Boolean> doFirst = [
        Integer i, Integer j, Functions$Fucntion2<Integer, Integer, Boolean> f |
    logInfo("Test", "test first")
    f.apply(i, j)
    true
]

val Functions$Function2<Integer, Integer, Boolean> doSecond = [
        Integer i, Integer j |
    logInfo("Test", "test second "+i+" "+j)
    true
]

rule "function test"
when
    System started
then
        logInfo("test","test start")
        doFirst.apply(1, 2, doSeconds)
        logInfo("test","test finished")
end

The log result is:
[INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘dyn.rules’, using it anyway:
The field Tmp_dynRules.doFirst refers to the missing type Object
[INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘dyn.rules’
[INFO ] [.eclipse.smarthome.model.script.test] - test start

can someone help me to find my problem?

Thanks ahead.

Typos? Fucntions vs Functions, doSecond vs doSeconds.

Thanks!
Now after the fix I see in the logs:
2017-07-06 08:27:57.303 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘dyn.rules’, using it anyway:
The field Tmp_dynRules.doFirst refers to the missing type Object
2017-07-06 08:27:57.315 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dyn.rules’
2017-07-06 08:28:03.519 [INFO ] [.eclipse.smarthome.model.script.test] - test start
2017-07-06 08:28:03.529 [INFO ] [.eclipse.smarthome.model.script.Test] - test first

I am seeing similar results when trying to call one function from another. Did you ever get this to work?

I removed all the generic

You mean to removed all nested function references? So you are no longer calling other functions from within a function?

J
No, try to remove the <>
Or try to paste it and we’ll try to understand the problem…

That worked perfectly, thanks.

@Ahiel
I run into the same problem. Can you please post your running example.

val Procedures$Procedure5<SwitchItem, SwitchItem, Map<String, Timer>, Map<String, Timer>, Map<String, Boolean>> autoTurnOff = [
SwitchItem relayItem, SwitchItem motionRelay, Map<String, Timer> reopenTimersMap,
Map<String, Timer> timersMap, Map<String, Boolean> reopenLightMap |


]

rule "my rule"
when
Item motionRoom received update ON
then
autoTurnOff.apply(roomLight, motionRoom, reopenTimers, timers, reopenLights)
end