You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a class who's constructor has optional parameters
Get a ClassMirror for this class using reflectClass
Call newInstance on the ClassMirror without specifying any positional arguments.
What is the expected output? What do you see instead?
I expect a valid InstanceMirror to be created, but instead I get a NoSuchMethodError.
What version of the product are you using? On what operating system?
Dart Editor version 1.1.0.dev_05_00 (DEV)
Dart SDK version 1.1.0-dev.5.0
Mac OS X 10.9.1
Please provide any additional information below.
Can be fixed currently by passing the correct amount of positional arguments, or by removing the optional parameter entirely from the constructor. Neither are acceptable.
null 499
InstanceMirror on Instance of 'A'
null 499
InstanceMirror on Instance of 'A'
499
InstanceMirror on Instance of 'A'
42
InstanceMirror on Instance of 'A'
This issue was originally filed by mr...@gmail.com
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect a valid InstanceMirror to be created, but instead I get a NoSuchMethodError.
What version of the product are you using? On what operating system?
Dart Editor version 1.1.0.dev_05_00 (DEV)
Dart SDK version 1.1.0-dev.5.0
Mac OS X 10.9.1
Please provide any additional information below.
Can be fixed currently by passing the correct amount of positional arguments, or by removing the optional parameter entirely from the constructor. Neither are acceptable.
Attachment:
test.dart (201 Bytes)
The text was updated successfully, but these errors were encountered: