scope: refuse `&x` where x is a local variable
[nit.git] / tests / base_string.nit
index 4ff4c8e..8199de6 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import string
+import text
 
 redef class String
        redef fun output
        do
-               for c in self do c.output
+               for c in self.chars do c.output
        end
 end