mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
875f1e92cc
commit
3e78b54d46
4 changed files with 25 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue