Anonymous user
Parametric polymorphism: Difference between revisions
→{{header|C sharp|C#}}: Fix compilation error in main program, cannot implicitly convert type BinaryTree<int> to type BinaryTree<U>
No edit summary |
(→{{header|C sharp|C#}}: Fix compilation error in main program, cannot implicitly convert type BinaryTree<int> to type BinaryTree<U>) |
||
Line 140:
class Program {
static void Main(string[] args) {
BinaryTree<
b.left = new BinaryTree<int>(5);
b.right = new BinaryTree<int>(7);
BinaryTree<
}
}
|