[Mono-list] Strange compiler (mis)behaviour
Raja R Harinath
rharinath@novell.com
Wed, 23 Feb 2005 14:55:46 +0530
Hi,
Aleksandar Dezelin <dezelin@gmail.com> writes:
> I get this error when I try to compile my application code:
>
> *** Building TemplateConvertor.exe...
> /usr/local/bin/mcs -g -d:DEBUG,TRACE -checked+ -L ./lib -t:exe
> -out:./lib/TemplateConvertor.exe -r:System,System.Data,PassiveTypes
> @TemplateConvertor.sources
> ./src/TemplateConvertor/AccessTemplates.cs(98) error CS0172: Can not
> compute type of conditional expression as `int' and `short' convert
> implicitly to each other
> Compilation failed: 1 error(s), 0 warnings
That's wierd. 'int' and 'short' do _not_ implicitly convert to each
other. Can you file a bug on bugzilla with a small testcase.
- Hari