[nem-bug] [Nemerle 0000600]: problems with enum attribute values on
ms.net
feedback at nemerle.org
feedback at nemerle.org
Sun Jan 22 17:59:19 CET 2006
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=600>
======================================================================
Reported By: malekith
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 600
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 01-22-2006 17:59 CET
Last Modified: 01-22-2006 17:59 CET
======================================================================
Summary: problems with enum attribute values on ms.net
Description:
Investigate if this is a problem with ms.net or with us.
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
namespace Test {
class MainClass {
public static Main() : void {}
}
[Test(TestEnum2.TestValue)]
enum TestEnum {
| Value
}
class TestAttribute : Attribute {
public this(_ : TestEnum2 ) {
}
}
class Test2Attribute : Attribute {
}
enum TestEnum2 {
[Test2]
| TestValue
}
}
frommcs/test-478.n
error: internal compiler error: got ArgumentException (Type must be a type
provided by the runtime.
Parameter name: enumType)
at System.Enum.GetUnderlyingType(Type enumType)
at System.Reflection.Emit.CustomAttributeBuilder.ValidateType(Type t)
at
System.Reflection.Emit.CustomAttributeBuilder.InitCustomAttributeBuilder(ConstructorInfo
con, Object[] constructorArgs, PropertyInfo[] namedProperties, Object[]
propertyValues, FieldInfo[] namedFields, Object[] fieldValues)
at Nemerle.Compiler.AttributeCompiler.do_compile(GlobalEnv env,
TypeBuilder ti, TypeInfo attr, list`1 parms)
at Nemerle.Compiler.AttributeCompiler.CompileAttribute(GlobalEnv env,
TypeBuilder ti, PExpr expr)
at Nemerle.Compiler.Modifiers.SaveCustomAttributes(TypeBuilder ti,
Function`3 adder)
at Nemerle.Compiler.TypeBuilder.EmitImplementation()
at
Nemerle.Compiler.TypesManager._N_emit_impl_23651.apply_void(TypeBuilder
_N_23650)
at
Nemerle.Compiler.TypesManager._N__N_l24029_24047.apply_void(TypeBuilder
_N_24046)
at
Nemerle.Compiler.TypesManager._N_maybe_f_24088.apply_void(TypeBuilder
_N_24087)
at Nemerle.Collections.List.Iter['a](list`1 l, FunctionVoid`1 f)
at Nemerle.Core.list`1.Iter(FunctionVoid`1 f)
at Nemerle.Compiler.TypesManager.Iter(list`1 builders, FunctionVoid`1
f)
at Nemerle.Compiler.TypesManager.IterConditionally(FunctionVoid`1 f,
Function`2 cond)
at Nemerle.Compiler.TypesManager.compile_all_tyinfos(Boolean
aux_phase)
at Nemerle.Compiler.TypesManager._N__N_l23232_23319.apply_void()
at Nemerle.Compiler.Solver.Enqueue(FunctionVoid action)
at Nemerle.Compiler.Passes.Run()
at Nemerle.CommandlineCompiler.MainClass.main_with_catching()
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
01-22-06 17:59 malekith New Issue
======================================================================
More information about the bugs
mailing list