File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: da470ff5b8b970c90b4dce3885a2908d477c1021
2
+ refs/heads/master: 6517fc5ab6785d0bd3340c73d8ec364c18d5a2df
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change
1
+ class c1<T : copy> {
2
+ let x: T ;
3
+ new ( x: T ) { self . x = x; }
4
+
5
+ fn f1 ( x : int ) {
6
+ }
7
+ }
8
+
9
+ impl i1 < T : copy > for c1 < T > {
10
+ fn f2 ( x : int ) {
11
+ }
12
+ }
13
+
14
+
15
+ fn main ( ) {
16
+ c1 :: < int > ( 3 ) . f1 ( 4 ) ;
17
+ c1 :: < int > ( 3 ) . f2 ( 4 ) ;
18
+ }
Original file line number Diff line number Diff line change
1
+ import dvec:: dvec;
2
+
3
+ class c1<T : copy> {
4
+ let x: T ;
5
+ new ( x: T ) { self . x = x; }
6
+
7
+ fn f1 ( x : T ) { }
8
+ }
9
+
10
+ impl i1 < T : copy > for c1 < T > {
11
+ fn f2 ( x : T ) { }
12
+ }
13
+
14
+
15
+ fn main ( ) {
16
+ c1 :: < int > ( 3 ) . f1 ( 4 ) ;
17
+ c1 :: < int > ( 3 ) . f2 ( 4 ) ;
18
+ }
You can’t perform that action at this time.
0 commit comments