File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ myfunc: () = {
2222        std::cout << "(s)$\n";
2323}
2424
25+ myclass2: <T> type = {
26+     value: int == 42;
27+ }
28+ 
2529main: () = {
2630    view: type == std::string_view;
2731    N4: namespace == std::literals;
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ namespace N {
1616class  myclass ;
1717
1818
19+ #line  25 "pure2-type-and-namespace-aliases.cpp2"
20+ template <typename  T> class  myclass2 ;
21+     
22+ 
1923// === Cpp2 type definitions and function declarations ===========================
2024
2125
@@ -44,6 +48,15 @@ auto myfunc() -> void;
4448
4549
4650#line  25 "pure2-type-and-namespace-aliases.cpp2"
51+ template <typename  T> class  myclass2  {
52+     public:  static  const  int  value;
53+ 
54+     public:  myclass2() = default ;
55+     public:  myclass2(myclass2 const &) = delete ; /*  No 'that' constructor, suppress copy */ 
56+     public:  auto  operator =(myclass2 const &) -> void  = delete ;
57+ #line  27 "pure2-type-and-namespace-aliases.cpp2"
58+ };
59+ 
4760auto  main () -> int;
4861
4962
@@ -68,6 +81,10 @@ auto const& v2 = std::move(v);
6881#line  23 "pure2-type-and-namespace-aliases.cpp2"
6982}
7083
84+ #line  26 "pure2-type-and-namespace-aliases.cpp2"
85+     template <typename  T> inline  CPP2_CONSTEXPR int <T> myclass2<T>::value = 42 ;
86+ 
87+ #line  29 "pure2-type-and-namespace-aliases.cpp2"
7188auto  main () -> int{
7289    using  view = std::string_view;
7390    namespace  N4  =  std::literals;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments