Fixed compile error in generated code, when webidl constructors have same number of args

Edited test webidl to show issue, and fix
This commit is contained in:
Peter 2016-02-28 00:33:11 +00:00
parent 875f1e92cc
commit 3e78b54d46
4 changed files with 25 additions and 5 deletions

View file

@ -51,6 +51,16 @@ impl TestBinding {
pub fn Constructor(global: GlobalRef) -> Fallible<Root<TestBinding>> {
Ok(TestBinding::new(global))
}
#[allow(unused_variables)]
pub fn Constructor_(global: GlobalRef, nums: Vec<f64>) -> Fallible<Root<TestBinding>> {
Ok(TestBinding::new(global))
}
#[allow(unused_variables)]
pub fn Constructor__(global: GlobalRef, num: f64) -> Fallible<Root<TestBinding>> {
Ok(TestBinding::new(global))
}
}
impl TestBindingMethods for TestBinding {