syntax: fix code using superstrings with nullables
[nit.git] / src / mmloader.nit
index 04c3a98..4dfc361 100644 (file)
@@ -38,10 +38,11 @@ special Comparable
        end
 
        redef fun to_s: String do
-               if location == null then
+               var l = location
+               if l == null then
                        return text
                else
-                       return "{location}: {text}"
+                       return "{l}: {text}"
                end
        end
 end