This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch NLPCRAFT-206
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-206 by this push:
     new 7559b68  Update NCDslCompilerBase.scala
7559b68 is described below

commit 7559b68d58a909f84b0401eb223069a1da8b23f0
Author: Aaron Radzinski <[email protected]>
AuthorDate: Mon Mar 15 17:46:29 2021 -0700

    Update NCDslCompilerBase.scala
---
 .../org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
index 64af438..6ebd72a 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
@@ -658,7 +658,7 @@ trait NCDslCompilerBase {
             })
         }
 
-        def z[Y](args: () ⇒ Y, body: Y ⇒ Z): Unit = args() match { case x ⇒ 
stack.push(() ⇒ body(x)) }
+        def z[Y](args: () ⇒ Y, body: Y ⇒ Z): Unit = { val x = args(); 
stack.push(() ⇒ body(x)) }
         def z0(body: () ⇒ Z): Unit = { delMarker(); stack.push(() ⇒ body()) } 
 
         fun match {

Reply via email to