File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ Access Type
2323 type Rec_Access_2 is access Rec_T;
2424 Rec_Ptr_2 : Rec_Access_2 := Rec_Access_2 (Rec_Ptr);
2525
26- :color-red: `example.adb:6:32: error: target type must be general access type `
26+ .. code :: error
27+ :font-size: footnotesize
28+
29+ example.adb:6:32: error: target type must be general access type
2730
2831 .. note ::
2932
Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ Access Type Scoping Example
3939
4040.. container :: source_include 143_general_access_types/examples/accessibility_checks/nesting_example.adb :code:Ada :number-lines:1
4141
42- :color-red: `nesting_example.adb:12:23: error: non-local pointer cannot point to local object `
42+ .. code :: error
43+ :font-size: scriptsize
4344
44- :color-red: `nesting_example.adb:17:39: error: cannot convert local pointer to non-local access type `
45+ example.adb:12:23: error: non-local pointer cannot point to local object
46+ example.adb:17:39: error: cannot convert local pointer to non-local access type
4547
4648 * To avoid having to face these issues, avoid nested access types
4749
@@ -62,7 +64,9 @@ Dynamic Accessibility Checks
6264
6365.. container :: source_include 143_general_access_types/examples/accessibility_checks/dynamic_accessibility.adb :code:Ada :number-lines:4 :start-after:snippet_begin :end-before:snippet_end
6466
65- :color-red: `raised PROGRAM_ERROR : dynamic_accessibility.adb:12 accessibility check failed `
67+ .. code :: error
68+
69+ raised PROGRAM_ERROR : dynamic_accessibility.adb:12 accessibility check failed
6670
6771-------------------------------------
6872Getting Around Accessibility Checks
You can’t perform that action at this time.
0 commit comments