This issue was originally filed by ms...@unipro.ru
What steps will reproduce the problem?
Run the following test:
class A {
foo([x = '']) {}
}
class C extends A {
foo([x = 1]) {}
}
main() {
(new A()).foo(2);
(new C()).foo(1);
}
What is the expected output? What do you see instead?
Expected: static warning since default values are different.
Actual: no static warnings.
What version of the product are you using? On what operating system?
Dartc, r7892. OS: Ubuntu 10.04.
Please provide any additional information below.
Tests in co19:
Language/07_Classes/1_Instance_Methods_A04_t01.dart
Language/07_Classes/1_Instance_Methods_A04_t02.dart
Language/07_Classes/1_Instance_Methods_A04_t03.dart
Language/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t01.dart
Language/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t03.dartLanguage/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t04.dartLanguage/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t05.dartLanguage/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t06.dart
This issue was originally filed by ms...@unipro.ru
What steps will reproduce the problem? Run the following test:
class A { foo([x = '']) {} }
class C extends A { foo([x = 1]) {} }
main() { (new A()).foo(2); (new C()).foo(1); }
What is the expected output? What do you see instead? Expected: static warning since default values are different. Actual: no static warnings.
What version of the product are you using? On what operating system? Dartc, r7892. OS: Ubuntu 10.04.
Please provide any additional information below. Tests in co19: Language/07_Classes/1_Instance_Methods_A04_t01.dart Language/07_Classes/1_Instance_Methods_A04_t02.dart Language/07_Classes/1_Instance_Methods_A04_t03.dart Language/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t01.dart Language/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t03.dartLanguage/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t04.dartLanguage/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t05.dartLanguage/07_Classes/1_Instance_Methods/1_Abstract_Methods_A07_t06.dart