parse error dichiarazione hash

Bug #590895 reported by Marco Rondini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hybris
Invalid
Low
Simone Margaritelli

Bug Description

dichiarando un hash così:

import std.*;

hash = [ "ciao" : "lol",
         "vim" : "vam" ]
println(hash);

non da errore se, alla chiusura della riga, non c'è il ; (punto e virgola)

Revision history for this message
Marco Rondini (white-sheep) wrote :

Stessa cosa per gli array, non richiede ; anche se stanno tutti sulla stessa linea.

Changed in hybris:
assignee: nobody → Simone Margaritelli (evilsocket)
Revision history for this message
Simone Margaritelli (evilsocket) wrote :

Non è un errore, è voluto.

Changed in hybris:
importance: Undecided → Low
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.