|
W3506 Duplicate Template Name
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] W3506 Duplicate Template NameUmple semantic warning reported when a class has a duplicate template name
A class should have unique template names for each distinct template. If duplicate templates
are found, the last definition of the template is kept. Example
//Class A contains two templates
//of the same name, causing
//the warning
class A {
temp <<! output !>>
temp <<! otherOutput !>>
}
Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears
//The warning is resolved by
//giving the second template
//a distinct name
class A {
temp <<! output !>>
secondTemp <<! otherOutput !>>
}
Load the above code into UmpleOnline |