File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1414@_silgen_name ( " imagineInt64 " )
1515func imagineInt64( ) -> Builtin . Int64
1616
17+ precedencegroup AssignmentPrecedence { assignment: true }
18+
1719protocol P {
1820 associatedtype E : ~ Escapable
1921 borrowing func getE( ) -> _borrow( self ) E
@@ -38,6 +40,27 @@ public func pbits_ret_concerete() -> Bits {
3840 return pbits. getDefault ( )
3941}
4042
43+ struct NCInt : ~ Copyable {
44+ var value : Builtin . Int64
45+
46+ init ( _ value: Builtin . Int64 ) { self . value = value }
47+ }
48+
49+ struct NEInt : ~ Escapable {
50+ let value : Builtin . Int64
51+
52+ init< O : ~ Copyable & ~ Escapable> ( v: Builtin . Int64 , o: borrowing O ) -> _borrow( o ) Self {
53+ self. value = v
54+ return self
55+ }
56+
57+ // Test a generic storage owner.
58+ init ( borrowed: borrowing NCInt ) -> _borrow( borrowed) Self {
59+ self . init ( v: borrowed. value, o: borrowed)
60+ return self
61+ }
62+ }
63+
4164public func consume_indirect< NE : ~ Escapable> ( ne: consuming NE ) -> _consume( ne ) NE {
4265 return ne
4366}
You can’t perform that action at this time.
0 commit comments