When compiling this for COOPER, i get the error mentioned in title.
public protocol AP{init()}
public protocol BP{init()}
public protocol CP{init()}
public protocol DP{init()}
class manyGP<A:AP,B:BP,C:CP,D:DP>{
private var a:AP
private var b:BP
private var c:CP
private var d:DP
init(){
self.a = A()
self.b = B()
self.c = C()
self.d = D()
}
}
extension Int: AP{
public init(){
self = 0
}
}
extension String: BP{}
extension Double: CP{}
extension Bool: DP{}
Version Info:
Microsoft Visual Studio 2015 Shell (Integrated)
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00081
Installed Version: IDE Standard
RemObjects Elements 9.0.97.2071
RemObjects Elements (Oxygene, C# and Silver) for .NET, Cocoa and Java.
Copyright 2003-2016 RemObjects Software, LLC. All rights reserved.
http://www.remobjects.com/elements
RemObjects Elements leverages the LLVM compiler backend:
Copyright © 2003-2016 University of Illinois at Urbana-Champaign. All rights reserved.
http://llvm.org
RemObjects Everwood 4.7.79.695
RemObjects Everwood
Copyright RemObjects Software, LLC 2002-2016. All Rights Reserved.
http://www.remobjects.com/everwood