scope: refuse `&x` where x is a local variable
[nit.git] / tests / error_fun_ret5.nit
index d5d1ec0..065533e 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-meth toto: Int
+fun toto: Int
 do
        for i in new Array[Int] do
                return 1
        end
 end
+
+toto.output