git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a638a0d
)
extended error messages
author
Matthias Kramm
<kramm@quiss.org>
Sat, 14 Feb 2009 01:19:39 +0000
(
02:19
+0100)
committer
Matthias Kramm
<kramm@quiss.org>
Sat, 14 Feb 2009 01:19:39 +0000
(
02:19
+0100)
lib/as3/parser.y
patch
|
blob
|
history
diff --git
a/lib/as3/parser.y
b/lib/as3/parser.y
index
3e3abd3
..
600c54c
100644
(file)
--- a/
lib/as3/parser.y
+++ b/
lib/as3/parser.y
@@
-1363,7
+1363,9
@@
code_t*converttype(code_t*c, classinfo_t*from, classinfo_t*to)
return c;
if(TYPE_IS_NULL(from) && !IS_NUMBER_OR_INT(to))
return c;
- syntaxerror("can't convert type %s to %s", from->name, to->name);
+ syntaxerror("can't convert type %s%s%s to %s%s%s",
+ from->package, from->package?".":"", from->name,
+ to->package, to->package?".":"", to->name);
return 0; // make gcc happy
}