History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-608
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Rodrigo B. de Oliveira
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

negative numbers not working as arguments to attribute properties

Created: 17/Nov/05 11:46 AM   Updated: 17/Nov/05 12:21 PM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.7.5

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide
"""
-1
"""
import System

class FooAttribute(Attribute):
[property(Value)] _value

class Bar:
[Foo(Value: -1)]
def Zeng():
pass

attributes = Attribute.GetCustomAttributes(typeof(Bar).GetMethod("Zeng"), FooAttribute)
assert 1 == len(attributes)
print((attributes[0] as FooAttribute).Value)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.