[erlang-questions] Type tuple won't compile

Kostis Sagonas kostis@REDACTED
Wed Dec 31 09:21:24 CET 2014

On 12/30/2014 11:15 PM, Luis Rascão wrote:
> i'm on 16B03-1, i know about predefined types and if all of them failed
> i would have had no problem with this, what bugs me is that only tuple
> is raised as an error, guess it's a bug that's since been fixed, thanks!

Since you are on R16B03-1, it's not at all surprising that there is no 
complaint about the map() type since maps were introduced starting with 
OTP 17.  (This also explains why the compiler in 17.* gives a warning 
rather than an error when confronted with a definition of the map() 
type; this gives some time to programs to adapt when language additions 
or changes take place.)

But it's indeed a bug that the R16B03-1 does not raise an error for 
redefining list().  It's good to know that in 17.x it does not occur 


More information about the erlang-questions mailing list