From 3e18eebbeafcd549c535a2f283b8aefe3677035b Mon Sep 17 00:00:00 2001 From: Nicolas Hurman Date: Wed, 9 Apr 2014 06:57:45 +0200 Subject: [PATCH] v1.0 Release --- YakaC/Parser/Declaration.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/YakaC/Parser/Declaration.java b/YakaC/Parser/Declaration.java index d842833..aab5b92 100644 --- a/YakaC/Parser/Declaration.java +++ b/YakaC/Parser/Declaration.java @@ -158,6 +158,9 @@ public void function() */ public Type functionType() { + if (null == m_function) + throw new RuntimeException("No function declared"); + return m_function.type(); }