scope: refuse `&x` where x is a local variable
[nit.git] / tests / test_file_write.nit
index 5a8f936..bc4e2a1 100644 (file)
@@ -14,8 +14,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-var f = new OFStream.open("out/test_file_write.write")
+var f = new FileWriter.open("out/test_file_write.write")
    f.write("Quatre vingt et un : {421}\n")
    f.write("Une autre ligne\nencore un")
-   f.write(['e', '\n'].to_s)
+   f.write(['e', '\n'].plain_to_s)
    f.close